package com.example.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 快递
 */
public enum ExpressEnum {
    EMS("EMS", "中国邮政"),
    ZTO("ZTO", "中通"),
    SF("SF", "顺丰"),
    YTO("YTO", "圆通"),
    JDL("JDL", "京东"),
    DPK("DPK", "德邦快递"),
    ;
    @EnumValue
    private String key;
    @JsonValue
    private String value;

    ExpressEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
